package com.dapeis.api.controller.collocation.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.dapeis.api.controller.ITIMController;
import com.dapeis.api.controller.RestController;
import com.dapeis.domain.Collocation;
import com.dapeis.service.CollocationService;
import com.dapeis.service.TIMService;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;

/**
 * @author 作者 E-mail: hzyuanyong@126.com
 * @version 创建时间：2017年5月18日 下午3:33:27 类说明
 */
@Controller
@RequestMapping("/dps/tim")
public class TIMController extends RestController implements ITIMController {

    @Resource
    TIMService timService;
    @Resource
    CollocationService collocationService;

    @Override
    public JsonElement getSignature() {
	JsonObject jsonObject = buildSuccess();
	jsonObject.add("data", timService
		.getDPSCollocationSignature(getThreadLocalCollocation()));
	return jsonObject;
    }

}
